import {Injectable} from '@angular/core';

// const PREFIX: string = '/hermes-main/'
const PREFIX: string = 'http://120.27.8.215:8085/'

@Injectable()
export class API {
  //刷新token
  static USER_REFRESH_TOKEN: string = PREFIX + 'm/user/refreshToken'
  //发送验证码
  static USER_SEND_CODE: string = PREFIX + 'm/user/sendCode'
  //注册
  static USER_REGISTER: string = PREFIX + 'm/user/register'
  //检测手机号是否已注册
  static USER_CHECK_CELLPHONE: string = PREFIX + 'm/user/checkCellphone'
  //首页数据
  static NO_LOGIN_LIST: string = PREFIX + 'm/noLogin/getHomepageLoanList'
  //首页Banner
  static HOME_BANNER: string = PREFIX + 'm/noLogin/getBannerPicture'
  //登录
  static USER_LOGIN: string = PREFIX + 'm/user/login'
  //设置支付密码
  static USER_SET_PAY_PASSWORD: string = PREFIX + 'm/user/setPayPassword'
  //修改登录密码
  static USER_MODIFY_PSW: string = PREFIX + 'm/user/modifyPwd'
  //查看我的账号信息
  static ACCOUNT_INDEX: string = PREFIX + 'm/account/index'
  //跳转到认证绑定页面
  static ACCOUNT_AUTH_BIND: string = PREFIX + 'm/account/authBind'
  //提交实名认证
  static USER_AUTH_NAME: string = PREFIX + 'm/user/authname'
  //银行卡列表
  static ACCOUNT_GET_BANK_CARD: string = PREFIX + 'm/account/getBankCard'
  //银行列表
  static ACCOUNT_BANK_LIST: string = PREFIX + 'm/account/bindBankCardPage'
  //绑定银行卡
  static ACCOUNT_BIND_BANK_CARD: string = PREFIX + 'm/account/bindBankCard'
  //绑定银行卡
  static ACCOUNT_DELETE_BANK_CARD: string = PREFIX + 'm/account/deleteBankCard'
  //查看历史账单(资金明细)
  static ACCOUNT_DETAIL: string = PREFIX + 'm/account/accountDetail'
  //查看产品列表
  static NO_LOGIN_PRODUCT_LIST: string = PREFIX + 'm/noLogin/productList'
  //查看产品详情
  static NO_LOGIN_PRODUCT_DETAIL: string = PREFIX + 'm/noLogin/productDetail'
  //查看产品投资记录
  static NO_LOGIN_INVESTMEMT: string = PREFIX + 'm/noLogin/investmemt'
  //跳转到立即购买页面(查询用户余额)
  static INVEST_BUY_NOW: string = PREFIX + 'm/invest/buyNow'
  //校验投标金额是否大于剩余可投金额或账户余额不足
  static INVEST_CHECK_MONEY_MORE: string = PREFIX + 'm/invest/checkMoneyMore'
  //确认投资
  static INVEST_BID: string = PREFIX + 'm/invest/bid'
  //查看当前用户投资记录-投资中
  static INVEST_MY_INVEST: string = PREFIX + 'm/invest/myinvest'
  //查看当前用户投资记录-已结算
  static INVEST_MY_INVEST_FINISH: string = PREFIX + 'm/invest/myinvestFinish'

}
